{% extends "base.html" %}

{% block title %}
修改信息
{% endblock %}

{% block revamp %}
    active
{% endblock %}
{% block body %}
 <form action="{% url "revamp" %}" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    <table>
        <tr>
            <td>姓名</td>
            <td><input type="text" name="username" value={{ u.username }}></td>
        </tr>
        <tr>
            <td>年龄</td>
            <td><input type="text" name="age" value={{ u.age }}></td>
        </tr>
        <tr>
            <td>性别</td>
            <td><select name="sex" >
  <option value="男">男</option>
  <option value="女">女</option>
</select></td>
        </tr>
        <tr>
            <td>照片</td>
            <td><input type="file" name="photo"></td>
        </tr>
        <tr>
            <td>年薪</td>
            <td><select name="money">
                    <option value="十万以下">十万以下</option>
                    <option value="五十万以下">五十万以下</option>
                    <option value="一百万以下">一百万以下</option>
                    <option value="一百万以上">一百万以上</option>
            </select></td>
        </tr>
        <tr>
            <td>婚姻状况</td>
            <td><select name="married">
                    <option value="离异">离异</option>
                    <option value="未婚">未婚</option>
            </select></td>
        </tr>
        <tr>
            <td>子女情况</td>
            <td><select name="children">
                    <option value="有">有</option>
                    <option value="无">无</option>
            </select></td>
        </tr>
        <tr>
            <td>已有房产</td>
            <td><input type="text" placeholder="只需写入数量" name="house" value={{ u.house }}></td>
        </tr>
        <tr>
            <td><input type="submit"></td>
            <td></td>
        </tr>
    </table>
    </form>
{% endblock %}